HTML & XHTML The Definitive Guide by Chuck Musciano & Bill Kennedy

HTML & XHTML The Definitive Guide by Chuck Musciano & Bill Kennedy

Author:Chuck Musciano & Bill Kennedy [Musciano, Chuck & Kennedy, Bill]
Language: eng
Format: epub
Tags: Xml, Web, Page Design, XHTML (Document Markup Language), Programming Languages, Electronic Books, Computers, HTML (Document Markup Language), General, Html, Site Directories, Browsers, Internet, Security, Education, Web Page Design, XML (Document Markup Language)
ISBN: 9780596527327
Publisher: O'Reilly Media
Published: 2000-01-02T08:00:00+00:00


9.2.2.1. The application/x-www-form-urlencoded encoding

The standard encodingapplication/x-www-form-urlencodedconverts any spaces in the form values into a plus sign (+), nonalphanumeric characters into a percent sign (%) followed by two hexadecimal digits that are the ASCII code of the character, and the line breaks in multiline form data into %0D%0A.

The standard encoding also includes a name for each field in the form. (A field is a discrete element in the form, whose value can be nearly anything from a single number to several lines of textthe user's address, for example.) If there is more than one value in the field, the values are separated by ampersands.

For example, here's what the browser sends to the server after the user fills out a form with two input fields labeled name and address; the former field has just one line of text, and the latter field has several lines of input:

name=O'Reilly+Media&address=1005+Gravenstein+Highway+North%0D%0A Sebastopol,%0D%0ACA+95472



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.